package cac.fenjian.resource.Properties.rest;

import cac.common.LoadPropertiesFileUtil;
import com.cac.dme.adapter.rest.msg.ResponseMsg;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("/Properties")
public class PropertiesFile {

    @PostMapping("/LoadPropertiesFile")
    public ResponseMsg<String> LoadPropertiesFile(){
        ResponseMsg<String> responseMsg = new ResponseMsg<>();
        String s = LoadPropertiesFileUtil.getPath();
        return responseMsg.setMessage(s);
    }
}
